<?php 
namespace User\Form;

use Zend\Form\Form;
class RegisterForm extends Form
{
	public function __construct()
	{
		parent::__construct('users');
		$this->setAttribute('method', 'post');
		$this->add(array(
		    'name' => 'id',
		    'attributes' => array(
		        'type' => 'hidden',
		    ),		    
		));
		
		$this->add(array(
		    'name' => 'username',
		    'attributes' => array(
		        'type' => 'text',
		    ),
		    'options' => array(
		    		'label' => 'UserName',
		    ),
		));
		
		$this->add(array(
		    'name' => 'password',
		    'attributes' => array(
		        'type' => 'password',
		    ),
		    'options' => array(
		    		'label' => 'Pwd',
		    ),
		    
		));
		
		$this->add(array(
		    'name' => 'repassword',
		    'attributes' => array(
		        'type' => 'password',
		    ),
		    'options' => array(
		    		'label' => 'RePwd',
		    ),
		));
		
		$this->add(array(
		    'name' => 'realname',
		    'attributes' => array(
		        'type' => 'text',
		    ),
		    'options' => array(
		        'label' => 'RealName',
		    ),
		));
		$this->add(array(
		    'name' => 'submit',
		    'attributes' => array(
		        'type' => 'submit',
		        'value' => 'Register',
		        'id' => 'submitbutton',
		    ),
		    
		));
	}
}
?>